package com.codesuc.aichat.role.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.codesuc.aichat.common.base.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
* @Author: ZhangGongMing
* @CreateTime: 2025/09/23 12:56
* @Description: Role实体类
* @Version: 1.0
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "role")
@Schema(title = "Role对象", description = "对话角色实体类")
public class Role extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
    * 主键ID
    */
    @Schema(name = "主键ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
    * 角色名称
    */
    @Schema(name = "角色名称")
    private String name;

    /**
    * 角色描述
    */
    @Schema(name = "角色描述")
    private String description;

    /**
    * 角色头像URL
    */
    @Schema(name = "角色头像URL")
    private String avatar;

    /**
    * 背景图片URL
    */
    @Schema(name = "背景图片URL")
    private String backgroundImage;

    /**
    * 角色分类
    */
    @Schema(name = "角色分类")
    private String category;

    /**
    * 是否系统内置：0-系统内置，1-用户添加
    */
    @Schema(name = "是否系统内置：0-系统内置，1-用户添加")
    private Integer isSystem;

    /**
    * 提示词
    */
    @Schema(name = "提示词")
    private String prompt;

}